/*
 *    Copyright (c) 2018-2025, orient All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: orient
 */

package cn.goswan.orient.guohur.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;

/**
 * 订单明细
 *
 * @author wangchuang
 * @date 2020-05-28 10:08:18
 */
@Data
@TableName("busi_order_detail")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "订单明细")
public class BusiOrderDetail extends Model<BusiOrderDetail> {
private static final long serialVersionUID = 1L;

    /**
     * 明细编号
     */
	@TableId(type = IdType.INPUT)
    @ApiModelProperty(value="明细编号")
    private String detailCode;
    /**
     * 订单编号
     */
    @ApiModelProperty(value="订单编号")
    private String orderCode;
    /**
     * sku编号
     */
    @ApiModelProperty(value="sku编号")
    private String skuCode;
    /**
     * 成本单价(商户单价)
     */
    @ApiModelProperty(value="成本单价(商户单价)")
    private BigDecimal merchantPrice;
    /**
     * 单价
     */
    @ApiModelProperty(value="单价")
    private BigDecimal orderPrice;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private Integer merchantId;
    /**
     * 客户id
     */
    @ApiModelProperty(value="客户id")
    private Integer userId;
    /**
     * 数量
     */
    @ApiModelProperty(value="数量")
    private Float orderCount;
    /**
     * 成本小计（商户销售价格）
     */
    @ApiModelProperty(value="成本小计（商户销售价格）")
    private BigDecimal subtotalMerchant;
    /**
     * 订单小计（平台销售价格）
     */
    @ApiModelProperty(value="订单小计（平台销售价格）")
    private BigDecimal subtotalOrder;
    /**
     * 订单状态
     */
    @ApiModelProperty(value="订单状态")
    private String detailState;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String detailSettleState;
    }
